import Vue from 'vue'
import Router from 'vue-router'
import preview from '@/components/preview'
import home from '@/components/home'
import login from '@/components/login'

//二级
import homeMakingServe from '@/components/pages/homeMakingServe/homeMakingServe'
import homeNurse from '@/components/pages/homeNurse/homeNurse'
import professionMaternity from '@/components/pages/professionMaternity/professionMaternity'
import breedSister from '@/components/pages/breedSister/breedSister'
import aboutUs from '@/components/pages/aboutUs/aboutUs'
import personCenter from '@/components/pages/personCenter/personCenter'
import mobilePersonInfo from '@/components/pages/personCenter/mobilePersonInfo'
import mobileOrder from '@/components/pages/personCenter/mobileOrder'
//详情
import cleanHouse from '@/components/pages/homeMakingServe/cleanHouse'
import homeMarkTrain from '@/components/pages/homeMakingServe/homeMarkTrain'
import homeMarkingTrainDetail from '@/components/pages/homeMakingServe/homeMarkingTrainDetail'
import breedSisterDetail from '@/components/pages/breedSister/breedSisterDetail'
import homeRepair from '@/components/pages/homeMakingServe/homeRepair'
import moveHouse from '@/components/pages/homeMakingServe/moveHouse'
import nurseInfo from '@/components/pages/homeNurse/nurseInfo'
import maternityInfo from '@/components/pages/professionMaternity/maternityInfo'

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/',component: home,children:[
    		{name:"preview",path: '/',component: preview},
    		{name:"login",path: '/login',component: login},
    		
    		//家政服务项目页面
    		{name:"homeMakingServe",path: '/homeMakingServe',component: homeMakingServe},
    				//保洁详情页面
    				{name:"cleanHouse",path: '/homeMakingServe/cleanHouse',component: cleanHouse},
    				//家政培训项目页面
    				{name:"homeMarkTrain",path: '/homeMarkTrain',component: homeMarkTrain},
    				//家政培训详情页面
    				{name:"homeMarkingTrainDetail",path: '/homeMakingServe/homeMarkingTrainDetail',component: homeMarkingTrainDetail},
    				//家政维修详情页面
    				{name:"homeRepair",path: '/homeMakingServe/homeRepair',component: homeRepair},
    				//搬家搬厂详情页面
    				{name:"moveHouse",path: '/homeMakingServe/moveHouse',component: moveHouse},
    				
    		//家庭保姆项目页面
    		{name:"homeNurse",path: '/homeNurse',component: homeNurse},
    				//保姆详情页面
    				{name:"nurseInfo",path: '/homeNurse/nurseInfo',component: nurseInfo},
    				
    		//专业月嫂项目页面
    		{name:"professionMaternity",path: '/professionMaternity',component: professionMaternity},
    				//专业月嫂详情页面
    				{name:"maternityInfo",path: '/professionMaternity/maternityInfo',component: maternityInfo},
    		//育婴嫂项目页面
    		{name:"breedSister",path: '/breedSister',component: breedSister},
    				//育婴嫂详情页面
    				{name:"breedSisterDetail",path: '/breedSister/breedSisterDetail',component: breedSisterDetail},
    				
    		{name:"aboutUs",path: '/aboutUs',component: aboutUs},
    		{name:"personCenter",path: '/personCenter',component: personCenter},
		    		{name:"mobilePersonInfo",path: '/personCenter/mobilePersonInfo',component: mobilePersonInfo},
		    		{name:"mobileOrder",path: '/personCenter/mobileOrder',component: mobileOrder},
	    		
    ]}
  ]
})
